package com.elepro.shoppingmall.entity.comments;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;


@Data
@NoArgsConstructor
public class Comment {

    private Long id;

    private Long goodsId;

    private Long userId;

    private Long replyUserId;

    private Long replyCommentId;

    private String content;

    private String picture;

    private Long likeNum;

    private Date time;

    private List<Comment> commentList;

    public Comment(Long goodsId, Long userId, String content, String picture, Long likeNum){
        this.goodsId = goodsId;
        this.userId = userId;
        this.content = content;
        this.picture = picture;
        this.likeNum = likeNum;
    }
}
